<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ContactServiceImpl
 *
 * @author krisada.thiangtham
 */
class ContactServiceImpl {

    //put your code here
    private $dispatcher;

    public function __construct(ContactDao $dispatcher) {
        return $this->dispatcher = $dispatcher;
    }

    public function action($action) {
        return $this->dispatcher->dispatch($action);
    }

    public function createContact($contactTO) {
        return $this->dispatcher->createContact($contactTO);
    }

    public function updateContact($coontactTO) {
        return $this->dispatcher->updateContact($coontactTO);
    }

    public function getContactContent() {
        return $this->dispatcher->getContactContent();
    }

}
